<?php
//if not a real page (nobody called us here, just user trying to hack
if ((!isset($_SESSION['realpage']))
 || ($_SESSION['realpage'] == false))
 {
 	require './hack.php';
 	die(" ");
 }

error_reporting(E_ALL);



if (0 > version_compare(PHP_VERSION, '5')) {
	die('This file was generated for PHP 5');
}

class Talkback
{
	
	public $tbid	 = null;
	
	public $uid		 = null;
	
	public $user_fname	 = null;
	
	public $user_lname	 = null;
	
	public $publishtime = null;

	public $Content	 = null;
	
	public $Visible	 = null;

	// --- OPERATIONS ---

public static function factorTalkback($sqlArr)
	{
		$obj = new Talkback();     
		$flags = ENT_COMPAT | ENT_QUOTES ;
		$obj->uid			= $sqlArr['uid'];
		$obj->tbid    		= $sqlArr['tbid'];	  	 
		$obj->publishtime   = $sqlArr['publishtime'];
		$obj->user_fname 	= htmlspecialchars ( $sqlArr['fname'],$flags ,'UTF-8');
		$obj->user_lname	= htmlspecialchars ( $sqlArr['lname'],$flags ,'UTF-8');
		$obj->Visible		= $sqlArr['visibility'];
		
		$obj->Content 		= str_replace("[dropline]", "<br>",htmlspecialchars ( $sqlArr['content'],$flags ,'UTF-8'));	
				
		return  $obj;	
	}
} /* end of class Talkback */

?>